Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command-line suggestions #561

Closed
wants to merge 2 commits into from
Closed

command-line suggestions #561

wants to merge 2 commits into from

Conversation

minrk
Copy link
Member

@minrk minrk commented Jul 6, 2011

The most likely mistakes people will make with the new command-line args are:

ipython -pdb # single leading '-' for flag, which requires '--'
and ipython --gui=foo # leading '-' on assignment

This commit adds a suggestion to the error message in these two cases for arguments that would otherwise be valid.

So ipython --pylab=qt will fail with:
Invalid argument: '--pylab=qt'. Did you mean 'pylab=qt'?

etc.

minrk added 2 commits July 6, 2011 07:24
The most likely mistakes people will make are:

ipython -pdb # single leading '-' for flag, which requires '--'
and ipython --gui=foo # leading '-' on assignment

This adds a suggestion to the error message in these two cases for otherwise valid arguments.
the form of parameters (no leading '-', etc.) is explained in the
key-value section help, but this is not printed unless '--help-all' is given, so the explanation is added to aliases as well.
@minrk
Copy link
Member Author

minrk commented Jul 7, 2011

closed by 3c385ef, since these cases are now valid.

@minrk minrk closed this Jul 7, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant